RectanglePropertyTop
Type
operator
Summary
The top edge of a rectangle value.
Syntax
the top of <mRect>
Description
The location along the y-axis of the top edge of the rectangle.
note
Setting the top of a rectangle will reposition it without altering the width or height.
Parameters
Name | Type | Description |
---|---|---|
mRect | An expression which evaluates to a rectangle. |
Examples
variable tRect
put rectangle [50,100,150,200] into tRect
// Store the top edge of the rectangle in a variable
variable tTop
put the top of tRect into tTop
// Move the rectangle vertically to a new position.
set the top of tRect to 120